/* ✅ Loại bỏ gạch dưới (dòng vàng) */
.section-title span::after {
    content: none !important;
    display: none !important;
}

/* ✅ Điều chỉnh layout giữ icon và text */
.section-title span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    line-height: 1;
}

/* ✅ Nếu có SVG trước text */
.section-title svg {
    display: block;
    vertical-align: middle;
}

/* ✅ Tùy chọn: Loại bỏ toàn bộ border/gạch dưới */
.section-title {
    border: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


/* Base styles - Full width background */
.related-products-bg {
    background-color: #573121;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 20px 0;
    font-family: Arial, sans-serif;
    color: white;
    margin-bottom: 0;
    position: relative;
}

/* Container inside full-width background */
.full-width-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header row styles - Fixed height like image */
.header-row-related {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 20px 0;
    gap: 8px;
}

.header-cell-related {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px;
    padding: 12px 15px;
    color: #302E2E !important;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    flex: 1;
    height: 45px; /* Fixed height like in image */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.header-cell-related.characteristics {
    flex: 2;
}

.header-cell-related.feature {
    flex: 1.5;
}

.header-cell-related.action {
    background-color: transparent !important;
    flex: 0.8;
}

/* Product row wrapper */
.product-row-wrapper {
    background-color: #573d32;
    margin-bottom: 10px;
    width: 100%;
}

.product-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    align-items: center;
    gap: 8px;
}

.product-cell {
    flex: 1;
    padding: 0 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.product-cell.characteristics {
    flex: 2;
}

.product-cell.feature {
    flex: 1.5;
}

.product-cell.action {
    flex: 0.8;
    padding: 0 8px;
    text-align: center;
}

/* Button styles */
.see-more-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.see-more-btn:hover {
    background-color: var(--tp-common-black);
    color: white;
    text-decoration: none;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination styles */
.blue-pagination {
    padding: 30px 0;
    text-align: center;
}

.blue-pagination .pagination {
    justify-content: center;
    margin: 0;
    gap: 5px;
}

.blue-pagination .page-link {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blue-pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.blue-pagination .page-item.active .page-link {
    background-color: #0078BE;
    border-color: #0078BE;
    color: white;
}

.blue-pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .full-width-container {
        max-width: 1400px;
        padding: 0 30px;
    }
    
    .header-cell-related {
        font-size: 16px;
        padding: 15px 20px;
        height: 40px;
    }
    
    .product-cell {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .see-more-btn {
        min-width: 100px;
        font-size: 13px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .full-width-container {
        max-width: 1200px;
        padding: 0 25px;
    }
    
    .header-cell-related {
        height: 40px;
    }
}

/* Tablet Large (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .full-width-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .header-cell-related {
        font-size: 13px;
        padding: 8px 10px;
        height: 30px;
    }
    
    .product-cell {
        font-size: 13px;
        padding: 0 8px;
    }
    
    .see-more-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 70px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .full-width-container {
        padding: 0 15px;
    }
    
    .header-row-related {
        padding: 15px 0;
        gap: 5px;
    }
    
    .header-cell-related {
        font-size: 12px;
        padding: 6px 8px;
        height: 30px;
    }
    
    .product-cell {
        font-size: 12px;
        padding: 0 6px;
    }
    
    .product-row {
        padding: 10px 0;
        gap: 5px;
    }
    
    .see-more-btn {
        padding: 4px 6px;
        font-size: 10px;
        min-width: 60px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .related-products-bg {
        padding: 15px 0;
    }
    
    .full-width-container {
        padding: 0 15px;
    }
    
    .header-row-related {
        display: none;
    }
    
    .product-row-wrapper {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .product-row {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    .product-cell {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 14px;
        min-height: 35px;
    }
    
    .product-cell:last-child {
        border-bottom: none;
    }
    
    .product-cell:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 15px;
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .product-cell.action {
        justify-content: center;
        margin-top: 15px;
        padding: 15px 0;
        border-bottom: none;
    }
    
    .product-cell.action:before {
        content: none;
    }
    
    .see-more-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        margin: 0 auto;
        display: block;
        text-align: center;
        border-radius: 8px;
    }
}

/* Mobile Small (max 575px) */
@media (max-width: 575px) {
    .related-products-bg {
        padding: 10px 0;
    }
    
    .full-width-container {
        padding: 0 10px;
    }
    
    .header-row-related {
        display: none;
    }
    
    .product-row-wrapper {
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .product-row {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .product-cell {
        width: 100%;
        text-align: left;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 13px;
        min-height: 32px;
    }
    
    .product-cell:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        min-width: 100px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .product-cell.action {
        justify-content: center;
        margin-top: 12px;
        padding: 12px 0;
        border-bottom: none;
    }
    
    .product-cell.action:before {
        content: none;
    }
    
    .see-more-btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 18px;
        font-size: 13px;
        font-weight: 600;
        margin: 0 auto;
        display: block;
        text-align: center;
        border-radius: 6px;
    }
    
    .blue-pagination {
        padding: 20px 0;
    }
    
    .blue-pagination .page-link {
        padding: 6px 8px;
        font-size: 12px;
    }
}
/* chỉnh bộ search ở bảng danhh sách sản phẩm */
   
  .exact-search-form {
    width: 100%;
    max-width: 615px;
    margin-top: 15px;
}

.exact-search-container {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    height: 46px;
}

.exact-search-input {
    flex: 2; /* Tăng tỷ lệ cho input */
    border: none !important;
    padding: 0 16px !important;
    font-size: 16px;
    color: #333;
    background: #ffffff;
    outline: none;
    min-width: 0;
    height: 100% !important;
    line-height: 46px !important; /* Match the height for vertical centering */
    display: flex;
    align-items: center;
}

.exact-search-input::placeholder {
    color: #333;
    opacity: 1;
}

.exact-search-select-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    height: 100%;
    padding: 0;
    flex: 1.5;
}
.exact-search-select-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background-color: #9DA0A1;
}

.exact-search-select {
    border: none;
    padding: 0 32px 0 16px;
    font-size: 16px;
    color: #333;
    background: transparent;
    outline: none;
    cursor: pointer;
    height: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 12px;
    width: 100%;
}

.exact-search-button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    height: 100%;
    flex-shrink: 0;
    min-width: 100px;
}

.exact-search-button:hover {
    background: var(--tp-common-black);
}

/* Remove focus outline for exact match */
.exact-search-container:focus-within {
    outline: none;
}

.exact-search-input:focus,
.exact-search-select:focus,
.exact-search-button:focus {
    outline: none;
}

/* Mobile Responsive - Cải thiện tỷ lệ */
@media (max-width: 768px) {
    .exact-search-form {
        max-width: 100%;
    }
    
    .exact-search-container {
        height: 44px;
    }
    
    .exact-search-input {
        flex: 3; /* Tăng tỷ lệ input trên mobile */
        padding: 0 12px;
        font-size: 15px;
        line-height: 44px;
    }
    
    .exact-search-select-container {
        flex: 2; /* Giảm tỷ lệ select trên mobile */
    }
    
    .exact-search-select {
        padding: 0 24px 0 12px;
        font-size: 14px;
        background-position: right 8px center;
        background-size: 10px;
    }
    
    .exact-search-button {
        padding: 0 16px;
        font-size: 14px;
        min-width: 80px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .tp-shop-top .row > div {
        margin-bottom: 15px;
    }
    
    .tp-shop-top-right {
        justify-content: center !important;
    }
    
    .exact-search-input {
        flex: 2.5; /* Điều chỉnh tỷ lệ cho màn hình nhỏ */
        padding: 0 10px;
        font-size: 14px;
    }
    
    .exact-search-select-container {
        flex: 1.8;
    }
    
    .exact-search-select {
        padding: 0 20px 0 10px;
        font-size: 13px;
    }
    
    .exact-search-button {
        padding: 0 14px;
        font-size: 13px;
        min-width: 70px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .exact-search-input {
        flex: 2.2;
        padding: 0 8px;
    }
    
    .exact-search-select-container {
        flex: 1.5;
    }
    
    .exact-search-select {
        padding: 0 18px 0 8px;
        font-size: 12px;
    }
    
    .exact-search-button {
        padding: 0 12px;
        font-size: 12px;
        min-width: 65px;
    }
}
/* Giảm padding top footer*/
.tp-footer-top{
    padding-top: 0px;
}
/* giảm padding bottom trên product details */
 .tp-product-details-desc-item {
    padding-bottom: 30px;
}
/* get sample */
 .mini-cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
  }

  .sample-modal-box {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 100000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .sample-modal-box.active {
    right: 0;
  }

  .mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }

  .mini-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  } 
  