/* ==========================================================================
   Equipment Catalog & Product Details Styles
   ========================================================================== */

.body-block .content-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    width: 100%;
}
.title-bar {
    display: flex;
    flex-direction: column;
}
.body-content {
    align-items: stretch;
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: var(--spacing-lg);
}
.body-content .filter-column {
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
    min-width: 250px;
    padding-right: var(--spacing-lg);
}
.filter-column .filter-box {
    position: relative;
}
.filter-column input[type="text"] {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) 6px var(--spacing-sm) 26px;
    width: 100%;
}
.filter-box i {
    color: var(--color-border-alt);
    left: var(--spacing-xs);
    position: absolute;
    top: 9px;
}

.body-content .results-column {
    flex: 1;
}
.body-content .results-column .results-header {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.body-content .results-column .results-header h4 {
    flex: 1;
    margin: 0;
}
.status-info {
    font-size: var(--font-size-sm);
    text-align: right;
    text-transform: uppercase;
}
#product-count {
    font-weight: 600;
}
.body-content .catalog-grid {
    display: flex;
    flex: 1;
    flex-flow: row wrap;
    gap: var(--spacing-xl) var(--spacing-lg);
}

.body-content .catalog-grid .category-card,
.body-content .catalog-grid .product-card,
.equipment-grid .product-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
}
.body-content .catalog-grid .category-card,
.body-content .catalog-grid .product-card {
    flex: 0 0 calc(33.333% - 14px);
}
.body-content .catalog-grid .category-card:hover,
.body-content .catalog-grid .product-card:hover,
.equipment-grid .product-card:hover {
    border-color: transparent;
}
.category-card, .product-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card {
    cursor: pointer;
}

.category-card-image, .product-card-image {
    border: 1px solid transparent;
    overflow: hidden;
}

.category-thumb, .product-thumb {
    align-items: center;
    aspect-ratio: 4 / 3;
    background-color: #f8f8f8;
    border-radius: var(--border-radius-lg);
    display: flex;
    height: auto;
    justify-content: center;
    max-height: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.category-thumb img, .product-thumb img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
    width: 100%;
}

.body-content .catalog-grid .category-card:hover .category-thumb img,
.body-content .catalog-grid .product-card:hover .product-thumb img,
.equipment-grid .product-card:hover .product-thumb img {
    transform: scale(1.15);
}
.product-thumb label.label-location {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    left: 12px;
    padding: 5px 10px 5px 5px;
    position: absolute;
    top: 12px;
}
.product-thumb label.label-stock {
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    font-size: var(--font-size-sm);
    left: 12px;
    padding: 5px 10px;
    position: absolute;
    bottom: var(--spacing-sm);
}
.product-thumb label.label-location i {
    margin-right: 3px;
}

.category-card-content, .product-card-content {
    border: 1px solid transparent;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    position: relative;
}
.category-card-content .indicator, .product-card-content .indicator {
    align-items: center;
    background-color: var(--color-primary);
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    color: var(--color-bg);
    display: none;
    font-size: 26px;
    height: 38px;
    justify-content: center;
    left: 0;
    line-height: 1;
    margin-inline: auto;
    padding: 0;
    position: absolute;
    right: 0;
    top: -19px;
    width: 38px;
    z-index: 10;
}

.body-content .catalog-grid .category-card:hover .category-card-content,
.body-content .catalog-grid .product-card:hover .product-card-content,
.equipment-grid .product-card:hover .product-card-content {
    border-color: var(--color-primary);
}
.body-content .catalog-grid .category-card:hover .category-card-content .indicator,
.body-content .catalog-grid .product-card:hover .product-card-content .indicator,
.equipment-grid .product-card:hover .product-card-content .indicator {
    display: flex;
}

.category-header, .product-header {
    display: flex;
    flex-direction: column;
}
.category-header span, .product-header span {
    color: #555555;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
}
.category-header h2, .product-header h2 {
    color: var(--color-text-main) !important;
    font-family: var(--font-family-sans) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: 600 !important;
    line-height: var(--line-height-base) !important;
    margin: 0 !important;
}
.product-header small {
    color: var(--color-text-main);
}
.product-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--spacing-md);
}
.product-details-grid {
    color: var(--color-text-muted);
    display: grid;
    font-size: 0.9rem;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
}
.product-details-grid .right-product {
    color: var(--color-text-main);
    justify-self: end;
    min-width: 0;
}
.product-stats {
    display: flex;
    flex-flow: row wrap;
    gap: var(--spacing-md);
    justify-content: center;
}
.product-card:hover .product-stats {
    background-color: var(--color-bg);
}
.product-stats-box {
    align-items: center;
    background-color: transparent;
    border: 1px solid #999999;
    border-radius: var(--border-radius-sm);
    color: #555555;
    display: flex;
    flex: 0 0 calc(50% - 8px);
    flex-direction: column;
    font-weight: 600;
    gap: 6px;
    line-height: 1;
    padding: var(--spacing-sm);
}
.product-stats-box.na {
    background-color: transparent;
    border: 1px solid var(--color-border-alt);
    color: var(--color-border-alt);
}
.product-stats-box div {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: var(--font-size-base);
    gap: 2px;
    justify-content: center;
}
.product-stats-box i {
    color: #555555;
    font-size: var(--font-size-sm);
}
.product-stats-box div small {
    color: #555555;
    line-height: 1;
}
.product-stats-box.na i,
.product-stats-box.na div small {
    color: var(--color-border-alt);
}
.product-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.product-price {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0 var(--spacing-md);
}
.product-price span {
    color: #888888;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}
.product-price h3 {
    color: #555555;
    flex: 1;
    font-size: var(--font-size-xl);
    margin: 0;
    text-align: right;
}
.product-card-buttons {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0 var(--spacing-md);
}
.product-card-buttons .btn {
    border: 0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 3px;
    justify-content: center;
    padding: 10px 5px;
}
.product-card-buttons .btn i {
    font-size: var(--font-size-lg);
}
.product-card-buttons .btn.view {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.product-card-buttons .btn.request {
    background-color: transparent;
}
.product-card-buttons .btn.view:hover,
.product-card-buttons .btn.request:hover {
    background-color: var(--color-text-muted);
    color: var(--color-text-light);
}

.select-box {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-subtle);
}
#category-select-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.select-wrapper {
    position: relative;
    width: 100%;
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: var(--spacing-sm) 36px var(--spacing-sm) 10px;
    color: var(--color-text-subtle);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border-alt);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 118, 40, 0.2);
}
.select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}
.range-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}
.slider-track {
    position: absolute;
    height: 8px;
    width: 100%;
    background-color: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    z-index: 1;
}
.range-slider-container input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 2;
}
.range-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 20px;
    pointer-events: auto;
    width: 20px;
}
.range-slider-container input[type="range"]::-moz-range-thumb {
    background: var(--color-primary);
    border: 2px solid var(--color-bg);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 20px;
    pointer-events: auto;
    width: 20px;
}
.range-values {
    display: flex;
    flex-direction: row;
    font-size: var(--font-size-sm);
    justify-content: space-between;
}
.filter-form-buttons {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    justify-content: center;
}

.btn-back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: var(--z-floating);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: var(--color-text-main);
    color: var(--color-text-light);
    border: none;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-floating);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}
.btn-back-to-top:hover {
    background-color: #000000;
    color: var(--color-text-light);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}
.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product .body-content {
    flex-direction: column;
}
.product .product-details {
    flex-direction: row;
    gap: 40px;
}
.product-gallery {
    flex: 1 1 auto;
    min-width: 0;
}
.product-overview {
    flex: 0 0 400px;
    max-width: 400px;
    width: 100%;
}
.product-overview h2 {
    margin: 0;
}
.product-overview .badge-make {
    background-color: #eeeeee;
    border-radius: var(--border-radius-lg);
    color: #555555;
    font-size: var(--font-size-sm);
    padding: 2px var(--spacing-sm);
}
.product-overview .product-description {
    font-size: var(--font-size-sm);
    line-height: 1.1rem;
}
.product-overview .product-price {
    font-size: 1.4rem;
    margin: 5px 0 var(--spacing-md) !important;
    padding: 0;
}
.product-content-block {
    margin-bottom: var(--spacing-md);
}
.product-content-block .details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.product-content-block .details-container div {
    border: 1px solid #e4e4e4;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    padding: var(--spacing-sm);
}
.product-content-block .details-container div small {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
}
.features-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--spacing-md);
}
.features-container div {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.features-container div span {
    flex: 1;
}
.action-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--spacing-xl);
}
.action-btn {
    align-items: center;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 0.9rem;
    gap: 5px;
    justify-content: center;
    padding: 5px 10px;
}
.action-btn.focus {
    background-color: var(--color-primary);
    color: #eeeeee;
}
.action-btn:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text-main);
}
.gallery-main-wrapper {
    align-items: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    max-height: 400px;
    text-align: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.gallery-main-wrapper img {
    cursor: zoom-in;
    height: 100%;
    object-fit: contain;
    width: 100%;
}
.zoom-hover-icon {
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    color: var(--color-text-light);
    display: flex;
    left: 50%;
    height: 56px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    width: 56px;
    visibility: hidden;
    z-index: 5;
}
.gallery-main-wrapper:hover .zoom-hover-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
}
.gallery-arrow {
    align-items: center;
    background: rgba(204, 204, 204, 0.5);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-fast);
    user-select: none;
    width: 40px;
    z-index: 10;
}
.gallery-arrow:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-text-light);
}
.prev-arrow { left: var(--spacing-lg); }
.next-arrow { right: var(--spacing-lg); }

.gallery-main-wrapper:only-child .gallery-arrow {
    display: none;
}
.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-thumbnails .thumb-img {
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    box-sizing: border-box;
    cursor: pointer;
    flex: 0 0 calc(20% - 8px);
    max-width: calc(20% - 8px);
    object-fit: contain;
    padding: var(--spacing-xs);
}

.gallery-thumbnails .thumb-img.active,
.gallery-thumbnails .thumb-img:hover {
    border-color: var(--color-primary);
}

/* Responsive Collapse for Small Screens */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }

    .product-details {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Lightbox Overlay Base */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

/* Lightbox Content Container */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-caption {
    color: var(--color-text-light);
    margin-top: 12px;
    font-size: 15px;
    text-align: center;
}

/* Close & Navigation Buttons */
.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: 24px;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    font-size: 24px;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background var(--transition-fast);
    width: 48px;
    z-index: 10000;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.product-tabs-wrapper {
    margin-top: 24px;
    width: 100%;
}
.tab-navigation-bar {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: var(--spacing-lg);
}
.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}
.tab-btn:hover {
    color: var(--color-primary-hover);
}
.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: 24px;
}
.benefit-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg-light);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.benefit-image-wrapper {
    align-items: center;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    height: 180px;
    padding: var(--spacing-md);
    width: 100%;
}
.benefit-image-wrapper img {
    border-radius: var(--border-radius-lg);
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.benefit-body {
    flex: 1;
    padding: var(--spacing-md);
}
.benefit-body h4 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.05rem;
    color: var(--color-text-main);
}
.benefit-body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Specifications Table */
.specs-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.accordion-group {
    border: 1px solid var(--color-bg-dark);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 10px;
}
.accordion-header {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg-light);
    border: none;
    text-align: left;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}
.accordion-header:hover {
    background-color: #e5e5e5;
}
.accordion-arrow {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform var(--transition-fast);
    display: inline-block;
}
.accordion-group.active .accordion-arrow {
    transform: rotate(90deg);
}
.accordion-content {
    display: none;
}
.accordion-group.default-open .accordion-content {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table th,
.specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e9e9e9;
    font-size: 0.9rem;
    text-align: left;
}
.specs-table th {
    width: 35%;
    color: var(--color-text-muted);
    font-weight: 600;
    background-color: #fcfcfc;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}
.no-data-msg {
    color: var(--color-text-subtle);
    font-style: italic;
    padding: var(--spacing-md) 0;
}

.break-long-string {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-width: 0;
  width: 100%;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skeleton Placeholder Card Styles */
.page-template-page-new-equipment .skeleton-card,
.page-template-page-used-equipment .skeleton-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    flex: 0 0 calc(33.333% - 14px);
    opacity: 0.7;
    pointer-events: none;
}

.page-template-page-new-equipment .skeleton-box,
.page-template-page-used-equipment .skeleton-box {
    background-color: #e2e8f0;
    border-radius: var(--border-radius-lg);
    height: 218px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.page-template-page-new-equipment .skeleton-card .product-card-content,
.page-template-page-used-equipment .skeleton-card .product-card-content {
    gap: 5px;
    padding: 18px;
}

.page-template-page-new-equipment .skeleton-line,
.page-template-page-used-equipment .skeleton-line {
    background: #e2e8f0;
    border-radius: var(--border-radius-sm);
    height: 14px;
    overflow: hidden;
    position: relative;
}

.page-template-page-new-equipment .skeleton-title,
.page-template-page-used-equipment .skeleton-sub {
    width: 75%;
    height: 20px;
}

.page-template-page-new-equipment .skeleton-sub,
.page-template-page-used-equipment .skeleton-title {
    width: 45%;
}

.page-template-page-used-equipment .skeleton-detail {
    height: 100px;
    margin-top: var(--spacing-md);
    width: 100%;
}

/* Shimmer Animation Effect */
.skeleton-box::after,
.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Smooth Fade-in when real product cards render */
#catalog-grid .product-card:not(.skeleton-card) {
    animation: fadeInCard var(--transition-normal);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Filter Pill Container */
.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    padding: var(--spacing-xs) 10px;
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.filter-pill .pill-label {
    font-weight: 600;
    color: #475569;
}

.filter-pill .remove-pill {
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    margin-left: 2px;
    transition: color 0.15s ease;
}

.filter-pill .remove-pill:hover {
    color: #ef4444;
}

/* ==========================================================================
   Featured Equipment Sections & Equal-Height Cards
   ========================================================================== */

.ht-featured-equipment--specials {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.ht-featured-category-heading {
    align-items: center;
    border-bottom: 4px solid var(--color-bg-light);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 8px;
}

.ht-featured-category-count {
    align-items: center;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    color: var(--color-text-muted);
    display: flex;
    font-family: var(--font-family-sans);
    font-size: var(--font-size-sm);
    font-weight: 600;
    height: 30px;
    justify-content: center;
    line-height: 1;
    width: 30px;
}

.ht-featured-grid {
    display: grid;
    grid-template-columns: repeat(var(--ht-featured-cols, 3), minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.ht-featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.ht-featured-card .equipment-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: var(--spacing-md);
}

.ht-featured-card .equipment-card__footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 960px) {
    .ht-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ht-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Homepage Featured Equipment Strip (Single-Row Horizontal Scroll)
   ========================================================================== */

.ht-featured-equipment--homepage .ht-featured-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px; /* Breathing room above the horizontal scrollbar */
}

/* Size each card based on the block's --ht-featured-cols setting while keeping a readable minimum width */
.ht-featured-equipment--homepage .product-card {
    flex: 0 0 calc((100% - (var(--spacing-lg) * (var(--ht-featured-cols, 4) - 1))) / var(--ht-featured-cols, 4));
    min-width: 260px;
    max-height: 360px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hide detailed specs & stats on the compact homepage cards */
.ht-featured-equipment--homepage .product-details-grid,
.ht-featured-equipment--homepage .product-stats {
    display: none;
}

/* Subtle horizontal scrollbar styling */
.ht-featured-equipment--homepage .ht-featured-grid::-webkit-scrollbar {
    height: 8px;
}

.ht-featured-equipment--homepage .ht-featured-grid::-webkit-scrollbar-track {
    background: var(--color-bg-alt, #f4f4f4);
    border-radius: 4px;
}

.ht-featured-equipment--homepage .ht-featured-grid::-webkit-scrollbar-thumb {
    background: var(--color-border, #cccccc);
    border-radius: 4px;
}

.ht-featured-equipment--homepage .ht-featured-grid::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary, #367c2b);
}

/* Carousel wrapper & Previous / Next arrow buttons */
.ht-featured-carousel {
    position: relative;
}

.ht-featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border, #d0d0d0);
    background-color: var(--color-bg, #ffffff);
    color: var(--color-text, #1a1a1a);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.ht-featured-nav[hidden] {
    display: none;
}

.ht-featured-nav--prev {
    left: -18px;
}

.ht-featured-nav--next {
    right: -18px;
}

.ht-featured-nav:hover:not(:disabled),
.ht-featured-nav:focus-visible:not(:disabled) {
    background-color: var(--color-primary, #367c2b);
    border-color: var(--color-primary, #367c2b);
    color: #ffffff;
    outline: 2px solid var(--color-secondary, #ffde00);
    outline-offset: 2px;
}

.ht-featured-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* Keep arrows inside the container edges on narrower screens so they never clip */
@media (max-width: 1024px) {
    .ht-featured-nav--prev {
        left: 6px;
    }

    .ht-featured-nav--next {
        right: 6px;
    }
}

/* Hide arrows on touch-only mobile viewports where swipe + scrollbar is cleaner */
@media (max-width: 600px) {
    .ht-featured-nav {
        display: none;
    }
}