.containers {
            padding: 25px;
            border-radius: 8px;
        }
        .search-item {
            display: flex;
            gap: 8px;
            margin-bottom: 25px;
            max-width: 400px;
        }
        .search-item input {
            flex: 1;
            padding: 10px;
            font-size: 15px;
            border: 1px solid #ccc;
            border-radius: 4px;
            outline: none;
        }
        .search-item input:focus {
            border-color: #007bff;
        }
        /* 5-Column Grid Layout */
        .grid-layouts {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }
        /* Item Card Styling */
        .grid-item {
            border: 1px solid #ddd;
            padding-top:10px;
            border-radius: 6px;
            overflow: hidden;
            background: #fff;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            /* Smooth transition for the card containers lift */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        /* CARD HOVER EFFECT: Lifts the card slightly and deepens the shadow */
        .grid-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.12);
        }

        .image-containers {
            width: 100%;
            height: 150px;
            background-color: #eaeaea;
            overflow: hidden; /* Crucial: crops the image so it doesn't spill out when scaled */
        }
        
        .image-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Smooth transition for zoom and brightness alterations */
            transition: transform 0.4s ease, filter 0.4s ease;
        }

        /* IMAGE HOVER EFFECT: Zooms into the image and pops the brightness */
        .grid-item:hover .image-preview {
            transform: scale(1.08);
            filter: brightness(1.05);
        }

        .details-box {
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-grow: 1;
        }
        .item-title {
            font-size: 16px;
            font-weight: bold;
            margin: 0;
            color: #333;
        }
        .item-desc {
            font-size: 13px;
            color: #666;
            margin: 0;
            line-height: 1.4;
        }
        /* Navigation Controls */
        .controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #eee;
            padding-top: 15px;
        }
        .counter-text {
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }
        button {
            padding: 10px 20px;
            font-size: 15px;
            border: none;
            background-color: #007bff;
            color: white;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s;
        }
        button:hover {
            background-color: #0056b3;
        }
        button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
        .no-results {
            text-align: center;
            color: #888;
            font-style: italic;
            padding: 40px 0;
            font-size: 16px;
        }
        /* Responsive handling for smaller screens */
        @media (max-width: 900px) {
            .grid-layouts { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 600px) {
            .grid-layouts { grid-template-columns: repeat(1, 1fr); }
        }