/*
 |--------------------------------------------------------------------------
 | Custom page styles to harmonize static pages with the home theme.
 |--------------------------------------------------------------------------
 */

.breadcrumb-area.breadcrumb-overlay {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 120px 0;
}

@media (max-width: 991.98px) {
    .breadcrumb-area.breadcrumb-overlay {
        padding: 100px 0;
    }
}

@media (max-width: 575.98px) {
    .breadcrumb-area.breadcrumb-overlay {
        padding: 80px 0;
    }
}

.breadcrumb-area.breadcrumb-about {
    background-image: url('../img/slider/cosmetic/1-1.webp');
}

.breadcrumb-area.breadcrumb-products {
    background-image: url('../img/slider/cosmetic/2-1.webp');
}

.breadcrumb-area.breadcrumb-ingredients {
    background-image: url('../img/slider/cosmetic/3-1.webp');
}

.breadcrumb-area.breadcrumb-agency {
    background-image: url('../img/slider/cosmetic/4-1.webp');
}

.breadcrumb-area.breadcrumb-blog {
    background-image: url('../img/slider/cosmetic/5-1.webp');
}

.breadcrumb-area.breadcrumb-contact {
    background-image: url('../img/slider/cosmetic/5-2.webp');
}

.breadcrumb-area.breadcrumb-cart {
    background-image: url('../img/slider/cosmetic/4-2.webp');
}

.breadcrumb-area.breadcrumb-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 15, 15, 0.65) 0%, rgba(16, 15, 15, 0.35) 100%);
    z-index: 1;
}

.breadcrumb-area.breadcrumb-overlay .breadcrumb-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-area.breadcrumb-overlay .breadcrumb-content h2 {
    font-size: 38px;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.breadcrumb-area.breadcrumb-overlay .breadcrumb-item,
.breadcrumb-area.breadcrumb-overlay .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb-area.breadcrumb-overlay .breadcrumb-item.active,
.breadcrumb-area.breadcrumb-overlay .breadcrumb-item a:hover {
    color: #ffffff;
}

.page-wrapper {
    color: #454545;
    font-size: 16px;
    line-height: 1.9;
}

.page-wrapper h2,
.page-wrapper h3,
.page-wrapper h4,
.page-wrapper h5 {
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.page-wrapper h6 {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.page-wrapper p {
    margin-bottom: 18px;
}

.page-wrapper a {
    color: #ffffff;
    font-weight: 600;
}

.page-wrapper a:hover {
    color: #ffffff;
}

.page-wrapper .pro-title a {
    color: #333333;
    font-weight: 600;
}

.page-wrapper .pro-title a:hover {
    color: #b08d57;
}

/* Tab mô tả trang chi tiết: theme đặt .product-description rộng 200px (dùng cho bảng so sánh). */
.product-desc-tab .tab-content .product-description {
    width: 100%;
    max-width: 100%;
}

.page-section {
    padding: 90px 0;
}

.page-section.section-tight {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-section + .page-section {
    padding-top: 0;
}

.page-figure {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.page-figure img {
    width: 100%;
    display: block;
}

.page-highlight {
    background: #f7f2ea;
    border-radius: 16px;
    padding: 32px;
    box-shadow: inset 0 0 0 1px rgba(199, 178, 112, 0.35);
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mt-60 {
    margin-top: 60px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.w-100 {
    width: 100% !important;
}

.text-muted {
    color: #777777 !important;
}

.text-center {
    text-align: center !important;
}

.text-lg-end {
    text-align: right !important;
}

.page-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
}

.page-list li::before {
    content: "\f058";
    font-family: "FontAwesome";
    color: #c7b270;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 1px;
}

.page-icon-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 26px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
}

.page-icon-box .icon {
    font-size: 48px;
    color: #c7b270;
    margin-bottom: 18px;
}

.page-icon-box h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.page-icon-box span,
.page-icon-box p {
    color: #555555;
    display: block;
}

.page-icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.12);
}

.page-subtitle {
    color: #c7b270;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 10px;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 30px;
    background: #c7b270;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.theme-btn i {
    margin-left: 10px;
}

.theme-btn:hover {
    background: #8c6a24;
    color: #ffffff;
}

.badge-theme {
    display: inline-block;
    background: rgba(199, 178, 112, 0.15);
    color: #8c6a24;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
    margin-bottom: 8px;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-info-card ul {
    margin-top: 20px;
}

.contact-info-card li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: #4f4f4f;
}

.contact-info-card li i {
    color: #c7b270;
    margin-right: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.page-form {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.page-form label {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 12px;
    color: #777777;
}

.page-form .form-control,
.page-form textarea,
.page-form input {
    border-radius: 12px;
    border: 1px solid rgba(199, 178, 112, 0.35);
    padding: 14px 16px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-form .form-control:focus,
.page-form textarea:focus,
.page-form input:focus {
    border-color: #c7b270;
    box-shadow: 0 0 0 3px rgba(199, 178, 112, 0.2);
    outline: 0;
}

.blog-grid .single-blog-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-grid .single-blog-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
}

.blog-grid .blog-content {
    padding: 26px 28px 30px;
}

.blog-grid .blog-meta span {
    display: inline-block;
    font-size: 14px;
}

.blog-grid .blog-meta span + span {
    margin-left: 18px;
}

.blog-grid .blog-title a {
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.blog-grid .blog-title a:hover {
    color: #c7b270;
}

.blog-detail-header {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 42px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    margin-top: -120px;
    position: relative;
    z-index: 5;
}

.blog-detail-header .meta span {
    margin-right: 24px;
    color: #777777;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.blog-detail-header .meta span + span {
    margin-left: 0;
}

.blog-detail-content p {
    color: #464646;
    line-height: 1.9;
}

.blog-detail-content blockquote {
    background: #f7f2ea;
    padding: 28px 32px;
    border-radius: 16px;
    font-style: italic;
    color: #6d5a2f;
    margin: 32px 0;
    position: relative;
}

.blog-detail-content blockquote::before {
    content: "\201C";
    position: absolute;
    font-size: 70px;
    color: rgba(199, 178, 112, 0.5);
    top: -18px;
    left: 24px;
}

.blog-detail-content ul {
    margin: 0;
    padding-left: 20px;
}

.blog-detail-content ul li {
    margin-bottom: 10px;
}

.download-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.download-box .theme-btn {
    margin-left: auto;
}

.related-posts .single-blog-wrap {
    margin-bottom: 0;
}

.cart-main-area .table thead th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    color: #777777;
    border-bottom: 2px solid rgba(199, 178, 112, 0.35);
}

.cart-main-area .table tbody td {
    vertical-align: middle;
    color: #454545;
    padding: 18px 16px;
}

.cart-main-area .product-thumbnail img {
    width: 86px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.cart-main-area .quantity-input {
    width: 90px;
    border-radius: 10px;
    border: 1px solid rgba(199, 178, 112, 0.35);
    padding: 10px 12px;
    text-align: center;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-main-area .cart-update-btn {
    background: transparent;
    border: none;
    color: #c7b270;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-main-area .cart-update-btn:hover {
    color: #8c6a24;
}

.cart-summary-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.cart-summary-box ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.cart-summary-box li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #4f4f4f;
    font-weight: 500;
}

.cart-summary-box li.total {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.empty-cart-box {
    padding: 60px 40px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.empty-cart-box span {
    font-size: 50px;
    color: #c7b270;
    display: block;
    margin-bottom: 18px;
}

@media (max-width: 991.98px) {
    .breadcrumb-area.breadcrumb-overlay {
        padding: 70px 0;
    }

    .breadcrumb-area.breadcrumb-overlay .breadcrumb-content h2 {
        font-size: 30px;
    }

    .page-section {
        padding: 70px 0;
    }

    .text-lg-end {
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .breadcrumb-area.breadcrumb-overlay {
        padding: 60px 0;
    }

    .breadcrumb-area.breadcrumb-overlay .breadcrumb-content h2 {
        font-size: 26px;
    }
}

/* Header menu: giữ mỗi mục trên 1 dòng (menu có 8 mục sau khi thêm "Sự kiện") */
.header-bottom-list > li > a {
    white-space: nowrap;
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-bottom-list > li > a {
        padding-right: 14px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .header-bottom-list > li {
        margin-right: 0;
    }
    .header-bottom-list > li > a {
        font-size: 12px;
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* ===== Ảnh blog/sự kiện: không bao giờ tràn khung ===== */
.blog-grid .blog-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f1ea;
}
.blog-grid .blog-image a {
    display: block;
    height: 100%;
}
.blog-grid .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.blog-detail-content img,
.content-style img {
    max-width: 100%;
    height: auto;
}
.blog-detail-hero {
    margin: 0 0 28px;
}
.blog-detail-hero img {
    width: 100%;
    border-radius: 12px;
}
.blog-detail-content img.zoomable {
    cursor: zoom-in;
}

/* ===== Lightbox xem ảnh ===== */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: zoom-out;
}
.img-lightbox[hidden] {
    display: none;
}
.img-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.img-lightbox__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 30px;
    line-height: 44px;
    cursor: pointer;
}
.img-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}
html.img-lightbox-open,
html.img-lightbox-open body {
    overflow: hidden;
}
@media (max-width: 767px) {
    .blog-detail-header {
        padding: 28px 20px;
        margin-top: -80px;
    }
    .img-lightbox {
        padding: 8px;
    }
}

.badge-professional {
    margin-bottom: 6px;
}

.pro-tagline {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pro-sizes-table th,
.pro-sizes-table td {
    font-size: 14px;
    vertical-align: top;
}

.pro-ingredients dt {
    font-weight: 600;
    margin-top: 10px;
}

.pro-ingredients dd {
    margin: 0 0 6px;
}

.pro-clinical__survey {
    list-style: none;
    padding-left: 0;
}

.pro-clinical__survey li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.pro-clinical__pair {
    display: flex;
    gap: 10px;
}

.pro-clinical__pair figure {
    flex: 1 1 0;
    margin: 0;
    text-align: center;
}

.pro-clinical__pair img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 575px) {
    .product-desc-tab .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .product-desc-tab .nav-tabs .nav-link {
        white-space: nowrap;
    }
}

/* ===== CAT-09: thẻ sản phẩm (/, /products, sản phẩm liên quan) ===== */
.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Khung ảnh vuông 1/1: ảnh gốc lệch 0.8-1.3, contain để không cắt mất sản phẩm/chữ dung tích. */
.catalog-card__media {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.catalog-card__media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.catalog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.catalog-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    margin: 0;
    z-index: 2;
    background: #f8f1df;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.catalog-card .pro-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.catalog-card__title {
    margin-bottom: 8px;
    line-height: 20px;
    min-height: 40px;
}

.catalog-card__title a,
.catalog-card .pro-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    line-height: 20px;
    max-height: 40px;
}

.catalog-card__tagline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 18px !important;
    min-height: 36px;
    max-height: 36px;
    margin-bottom: 8px;
}

.catalog-card__price {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 4px;
}

/* Carousel liên quan: các thẻ cao bằng nhau. */
.catalog-related .owl-stage {
    display: flex;
}

.catalog-related .owl-item {
    display: flex;
}

.catalog-related .dual-pro {
    width: 100%;
    display: flex;
}

.catalog-related .dual-pro .single-makal-product:first-child {
    margin-bottom: 0;
}

.catalog-related .dual-pro .catalog-card {
    width: 100%;
}

/* ===== CAT-09: nội dung trang chi tiết (tab, bảng, lâm sàng) ===== */
.product-desc-tab .tab-content {
    padding: 28px 32px;
}

.catalog-section {
    font-size: 14px;
    line-height: 25px;
    color: inherit;
}

.catalog-section__title {
    margin: 24px 0 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-section > .catalog-section__title:first-child,
.catalog-section > :first-child {
    margin-top: 0;
}

.catalog-section p,
.catalog-section li,
.catalog-section dd,
.catalog-section dt,
.catalog-table th,
.catalog-table td {
    font-family: inherit;
    font-size: 14px;
    line-height: 25px;
    color: inherit;
}

.catalog-section p {
    margin: 0 0 12px;
    text-align: left;
}

.catalog-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 12px;
}

.catalog-list li {
    list-style: disc;
    margin-bottom: 4px;
}

.catalog-deflist dt {
    font-weight: 600;
    margin-top: 10px;
}

.catalog-deflist dd {
    margin: 0 0 6px;
}

.catalog-table {
    margin-bottom: 0;
}

.catalog-table th,
.catalog-table--info td:first-child {
    font-weight: 600;
}

.catalog-table--info td:first-child {
    width: 30%;
}

.catalog-review__name {
    margin: 0 12px 0 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 25px;
}

.pro-clinical .pro-clinical__survey {
    list-style: none;
    padding-left: 0;
}

@media (max-width: 575px) {
    .product-desc-tab .tab-content {
        padding: 16px;
    }

    .catalog-card__title a,
    .catalog-card .pro-title a {
        font-size: 14px;
    }
}
