/* 
 * Equipments & Inquiries Styles 
 */

/* Header Cart Count Badge */
.header-inquiries a {
    position: relative;
}
.inquiry-count.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff3b30;
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

/* Equipment Grid Skeleton */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.equipment-card {
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.equipment-card:hover {
    box-shadow: none;
}

.equipment-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.equipment-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipment-card-title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.2;
}

.equipment-card-excerpt {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    flex: 1;
}

.more-info-btn {
    align-self: flex-start;
    padding: 8px 16px;
    border: 1px solid #47B0FF;
    background: transparent;
    color: #47B0FF !important;
    cursor: pointer;
    border-radius:0;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.more-info-btn:hover {
    background: #47B0FF;
    color: #fff !important;
}

/* Popup Dialog */
.equipment-popup-dialog {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 0;
    width: 90%;
    max-width: 800px;
}

.equipment-popup-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.dialog-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight:500;
}

.dialog-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #414651;
    line-height: 1;
    padding:12px 20px !important;
    border:2px solid #ccc !important;
}
.dialog-header .dialog-close-btn{
    border:0 !important;
    font-size: 30px !important;
    padding:0 !important;
}
.dialog-close-btn:hover {
    color: #333;
}

.dialog-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 30px;
}

.popup-tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.popup-tab-btn:hover, .popup-tab-btn.active {
    color: #175cd3;
    background:#eff8ff;
    border:0;
    border-radius:8px;
}

.dialog-body {
    padding: 30px;
    min-height: 300px;
}

.popup-tab-panel {
    display: none;
}

.popup-tab-panel.active {
    display: block;
}

.dialog-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}

.add-to-inquiries-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.add-to-inquiries-btn:hover {
    background: #0056b3;
}

/* Inquiries Table */
.inquiries-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.inquiries-table th, .inquiries-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inquiries-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #444;
}

.inquiries-table th:last-child{
    display:none;
}

.product-title {
    font-weight: 500;
}

.qty-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.remove-item-btn:hover {
    color: #c92a21;
}

/* --------------------------------- */
/* Equipment Archive / Taxonomy View */
/* --------------------------------- */

.equipment-archive-wrapper {
    margin: 40px 0 0;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* Tabs & Filter Layout */
.el-tabs-container {
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.el-tab-link {
    padding: 12px 33px;
    color: #002B4B !important;
    text-decoration: none;
    border: 1px solid #ABABAB;
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.el-tab-link:hover {
    background: #f1f5f9;
    border-color:#63C1FF;
}

.el-tab-link.active {
    background: #fff;
    color: #002B4B;
    border-color:#63C1FF;
}

/* Options Bar (Toggle) */
.el-options-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.el-view-toggles {
    display: flex;
    gap: 10px;
}

.el-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 5px;
    transition: color 0.2s ease;
}

.el-toggle-btn:hover, .el-toggle-btn.active {
    color: #0056b3;
}

/* Layout Morphing */
.equipment-archive-wrapper.layout-list .equipment-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.equipment-archive-wrapper.layout-list .equipment-card {
    flex-direction: row;
    max-height: 250px;
}

.equipment-archive-wrapper.layout-list .equipment-card-img {
    width: 300px;
    height: 100%;
}

.equipment-archive-wrapper.layout-list .equipment-card-body {
    flex: 1;
    justify-content: center;
}

/* Pagination Styles */
.el-pagination {
    padding:30px 0 75px;
    text-align: center;
}

.el-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.el-pagination .page-numbers:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.el-pagination .page-numbers.current {
    background: #002b49;
    color: #fff;
    border-color: #002b49;
}

.el-pagination .prev, .el-pagination .next {
    width: auto;
    padding: 0 15px;
    border: none;
    background: transparent;
}

.el-pagination .prev:hover, .el-pagination .next:hover {
    background: transparent;
    text-decoration: underline;
}
.equipment-highlight-header a.view-all-link{
    color:#0082E3;
    outline:none;
}
.equipment-highlight-header h2{
    color:#002B4B;
}
.page-header{
	background:url(/wp-content/themes/antoni-intl/images/small-banner-mn.webp) #0f172a no-repeat !important;
	background-size:cover;
	padding:50px 0;
}
.page-header h1{
    max-width: 1200px;
	margin:auto;
	color:#fff;
	font-size: 36px;
    padding: 0 20px;
	font-weight:normal;
    text-align:left;
}
.equipment-description-content p{
    margin:0 0 10px;
    text-transform: capitalize;
}
.dialog-tabs button{width:50%;text-align:center;}

#antoni-inquiries-wrapper{padding:50px 0;}

@media screen and (max-width: 575px){
	.equipment-archive-wrapper .el-tabs-container{		
		flex-wrap: nowrap;
		justify-content: flex-start;
		white-space: nowrap;
		overflow: auto;
	}
	.equipment-archive-wrapper.layout-list .equipment-card-img{		
    	max-width: 140px;
    	height: auto;
	}
}