.fer-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.fer-item {
    position: relative;
    min-width: 200px;
}

.fer-item-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
}

.fer-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fer-item .fer-slideshow:hover img {
    transform: scale(1.05);
}

.fer-item .fer-slideshow {
    overflow: hidden;
    border-radius: 4px;
}

.fer-category-section {
    margin-bottom: 40px;
}

.fer-category-section h4 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}

.fer-item h4 {
    min-height: 50px;
    margin: 10px 0 8px 0;
    font-size: 15px;
    line-height: 1.3;
}

.fer-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.fer-daily-rate {
    display: inline-flex;
    align-items: center;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: #f0f0f0;
    padding: 6px 10px 6px 8px;
    border-radius: 4px;
    position: relative;
}

.fer-daily-rate::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.fer-show-more {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}

.fer-show-more:hover {
    background: #135e96;
}

.fer-full-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.fer-equipment-list {
    max-width: 1200px;
    margin: 0 auto;
}

.fer-search-bar {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.fer-search-bar .fer-price-info {
    margin-right: auto;
}

.fer-search-bar #fer-search-input {
    margin-left: auto;
}

.fer-search-bar input {
    padding: 5px;
    width: 300px;
}

#fer-rental-days {
    width: 60px;
    margin-right: 10px;
}

#fer-download-pdf {
    margin-right: 10px;
    padding: 5px 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#fer-download-pdf:hover {
    background: hsl(0, 0%, 50%);
}

.fer-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.fer-placeholder svg {
    width: 100px;
    height: 100px
}
.fer-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    max-width: none;
}

.fer-lightbox-content {
    position: relative;
    margin: 3% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    min-height: 55vh;
    background-color: #fff;
    border-radius: 8px;
}

.fer-lightbox-content img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.fer-lightbox-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}


.fer-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.fer-specs-table tr:nth-child(even) {
    background: rgba(0,0,0,0.03);
}

.fer-specs-table td {
    padding: 0.5em;
    vertical-align: top;
}

.fer-spec-label {
    font-weight: bold;
    width: 40%;
}

.fer-spec-value {
    width: 60%;
}

.fer-pagination {
    text-align: center;
    margin: 20px 0;
}

.fer-pagination a,
.fer-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.fer-pagination a:hover {
    background-color: #f0f0f0;
}

.fer-pagination .current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}
.fer-slideshow {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.fer-slideshow img {
    display: none;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fer-slideshow-prev, .fer-slideshow-next, .fer-lightbox-prev, .fer-lightbox-next  {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    text-decoration: none;
    
}

.fer-slideshow-prev {
    left: 10px;
}

.fer-slideshow-next {
    right: 10px;
}

.fer-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.fer-lightbox-content {
    position: relative;
    margin: 3% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    min-height: 55vh;
    background-color: #fff;
    border-radius: 8px;
}

.fer-lightbox-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #f5f5f5;
}

.fer-lightbox-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.fer-lightbox-slideshow {
    position: relative;
    text-align: center;
}

.fer-lightbox-slides img {
    width: 100%;
    display: none;
}


.fer-lightbox-prev {
    left: 10px;
}

.fer-lightbox-next {
    right: 10px;
}

.fer-lightbox-details {
    margin-top: 20px;
}

.fer-lightbox-details h2 {
    margin: 0 0 10px;
}

.fer-lightbox-details p {
    margin: 5px 0;
}

/* View Toggle */
.fer-view-toggle {
    display: flex;
    gap: 4px;
    margin-right: 15px;
}

.fer-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.fer-view-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.fer-view-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.fer-view-btn svg {
    display: block;
}

/* View Toggle - Show/Hide Grid and List */
.fer-grid-view {
    display: grid;
}

.fer-list-view {
    display: none;
}

.fer-equipment-list.list-mode .fer-grid-view {
    display: none;
}

.fer-equipment-list.list-mode .fer-list-view {
    display: table;
}

/* List View Table Styles */
.fer-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fer-items-table tr:nth-child(even) {
    background: #f9f9f9;
}

.fer-items-table tr:hover {
    background: #f0f0f0;
}

.fer-items-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.fer-table-qty {
    width: 35px;
    color: #999;
    text-align: right;
    padding-right: 5px;
}

.fer-table-name {
    cursor: pointer;
}

.fer-table-name:hover {
    text-decoration: underline;
}

.fer-table-price {
    width: 80px;
    text-align: right;
    white-space: nowrap;
    font-family: monospace;
}

/* Bundle Section */
.fer-bundles-section {
    margin-bottom: 40px;
}

.fer-bundles-heading {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.fer-bundles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .fer-bundles-list {
        grid-template-columns: 1fr;
    }
}

/* Bundle Card - Two Column Layout */
.fer-bundle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.fer-bundle-main {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

/* Bundle Collage - Square */
.fer-bundle-collage {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fer-collage-img {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Position images in a scattered pattern */
.fer-collage-img:nth-child(1) { left: 8%; top: 10%; transform: rotate(-8deg); }
.fer-collage-img:nth-child(2) { left: 50%; top: 5%; transform: rotate(5deg); }
.fer-collage-img:nth-child(3) { left: 15%; top: 50%; transform: rotate(-3deg); }
.fer-collage-img:nth-child(4) { left: 52%; top: 52%; transform: rotate(10deg); }
.fer-collage-img:nth-child(5) { left: 2%; top: 55%; transform: rotate(-12deg); }
.fer-collage-img:nth-child(6) { left: 35%; top: 28%; transform: rotate(7deg); }

/* Hover effect - images scatter outward */
.fer-bundle-collage:hover .fer-collage-img:nth-child(1) { transform: translate(-8px, -8px) rotate(-15deg) scale(1.05); }
.fer-bundle-collage:hover .fer-collage-img:nth-child(2) { transform: translate(8px, -8px) rotate(12deg) scale(1.05); }
.fer-bundle-collage:hover .fer-collage-img:nth-child(3) { transform: translate(-6px, 6px) rotate(-8deg) scale(1.05); }
.fer-bundle-collage:hover .fer-collage-img:nth-child(4) { transform: translate(8px, 8px) rotate(15deg) scale(1.05); }
.fer-bundle-collage:hover .fer-collage-img:nth-child(5) { transform: translate(-10px, 4px) rotate(-18deg) scale(1.05); }
.fer-bundle-collage:hover .fer-collage-img:nth-child(6) { transform: translate(4px, -4px) rotate(12deg) scale(1.05); }

.fer-bundle-collage:hover .fer-collage-img {
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.fer-collage-placeholder {
    font-size: 60px;
    opacity: 0.3;
}

/* Bundle Info - Right Column */
.fer-bundle-info {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.fer-bundle-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.fer-bundle-description {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.fer-bundle-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.fer-bundle-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.fer-bundle-savings {
    background: #46b450;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.fer-bundle-original {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
}

.fer-show-bundle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.fer-show-bundle-btn:hover {
    background: #555;
}

.fer-show-bundle-btn.active {
    background: #555;
}

.fer-show-bundle-btn.active .fer-bundle-btn-icon {
    transform: rotate(180deg);
}

.fer-bundle-btn-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Bundle Items - Expanded List */
.fer-bundle-items {
    display: none;
    border-top: 1px solid #eee;
    background: #fafafa;
    padding: 20px;
}

.fer-bundle-items.open {
    display: block;
}

.fer-bundle-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.fer-bundle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.fer-bundle-item-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.fer-bundle-item-placeholder {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
    font-size: 20px;
}

.fer-bundle-item-info {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    min-width: 0;
}

.fer-bundle-item-info strong {
    color: #333;
}

.fer-bundle-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

/* Responsive - Stack on mobile */
@media (max-width: 600px) {
    .fer-bundle-main {
        grid-template-columns: 1fr;
    }

    .fer-bundle-collage {
        width: 100%;
        height: 200px;
    }

    .fer-collage-img {
        width: 80px;
        height: 80px;
    }

    .fer-bundle-items-grid {
        grid-template-columns: 1fr;
    }
}
